
        <div align="center">
			<input class="button_selected" type="button" value="Gallery" onClick="window.location='<?php echo site_url('c=admin&m=configGallary') ?>' " />
			<input class="button_config_page" type="button" value="Travel and Teaching" onClick="window.location='<?php echo site_url('c=admin&m=configTravelAndteachingExcel') ?>' ">
			<input class="button_config_page" type="button" value="Class Information" onClick="window.location='<?php echo site_url('c=admin&m=configClass') ?>' ">
			<input class="button_config_page" type="button" value="Update data" onClick="window.location='<?php echo site_url('c=feed&m=updateAUTFeed') ?>' ">
		</div>
<form name="uploadFile" action="http://localhost/wbdb/?c=admin&m=configGallary" method="post" enctype="multipart/form-data">
	<div align="center">
		<div><h2>Upload image</h2></div>
		<input type="file" name="image" id="image" /><br>
		<span id="error_null_image" style="display: none;"><font color="red"> Please choose Image</font> </span>
		<br>
			<input class="button" type="submit" value="Save">
	</div>
</form>
<br>
<div align="center" style=" margin-left: 200px;padding-bottom: 112px;">
    	<?php foreach ($photoArray as $key): ?>
	    	<div style="float: left;padding-right: 50px;padding-bottom: 40px;" >
	    		<img width="100px" height="100px" src="./feed/photos/<?php echo $key["name"]?>"/>
	    		<a onclick="checkConfirmImage<?php echo $key["id"] ?>()"><font color="blue">Delete</font></a>
	    	</div>
	    	<script type="text/javascript">
			  function checkConfirmImage<?php echo $key["id"] ?>(){
				  	var r=confirm("Are you sure for this action ?");
					  if (r){
						  window.location="<?php echo site_url("c=admin&m=delete&photoID=") . $key["id"] ?>";			  
					  }	    
				  }
			 </script>
	    <?php endforeach;?>
</div>

